#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include "com_def.h"
#include "widget_tileset.h"
#include "widget_map.h"

namespace Ui
{
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void closeEvent(QCloseEvent *event);
Wt_Map *map;
Wt_TileSet *wt_tileset;
private:
    Ui::MainWindow *ui;
public:
    QString work_path;
    //bool is_modified;
public:
    QString tileset_name;
public:
    bool create_new_tileset();
    bool load_exist_tileset();
    bool close_current_tileset();


private slots:

    void on_action_Delete_Tile_triggered();
    void on_action_Insert_Tile_triggered();
    void on_action_Close_TileSet_triggered();
    void on_action_Load_TileSet_triggered();
    void on_action_Save_TileSet_triggered();
    void on_action_New_TileSet_triggered();
};

#endif // MAINWINDOW_H
